package com.youhome.clients.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by chen365 on 2019/02/19.
 * 搜索房源列表参数
 */
@Data
@ApiModel
public class DTOSearch {

    @ApiModelProperty(value = "查询方法,zip,address,city", example = "zip")
    private String action;

    @ApiModelProperty(value = "查询条件", example = "94085")
    private String keyword;

    @ApiModelProperty(value = "页码,默认第1页", example = "1")
    private Integer page = 1;

    @ApiModelProperty(value = "每页条数,默认20条", example = "20")
    private Integer pageSize = 20;

    @ApiModelProperty(value = "房屋类型")
    private String type;

    @ApiModelProperty(value = "卧室数量")
    private Integer beds;

    @ApiModelProperty(value = "卫浴数量")
    private Integer baths;

    @ApiModelProperty(value = "房龄")
    private String year;

    @ApiModelProperty(value = "最小面积")
    private String minSize;

    @ApiModelProperty(value = "最大面积")
    private String maxSize;

    @ApiModelProperty(value = "最小价格")
    private String minPrice;

    @ApiModelProperty(value = "最大价格")
    private String maxPrice;

    @ApiModelProperty(value = "排序字段(bedroomCount：卧室数量;bathroomCount：浴数量;yearBuilt：房龄;livingArea：面积;listPrice:价格)", example = "bedroomCount")
    private String filed;

    @ApiModelProperty(value = "排序方向(asc：升序  desc：降序)", example = "asc")
    private String direction;

    @ApiModelProperty(value = "查询自有房源")
    private Boolean isOwn;

    @ApiModelProperty(value = "查询明星房源")
    private Boolean isStar;

    @ApiModelProperty(value = "是否展示分享组名称")
    private Boolean isShowShareGroup;

    @ApiModelProperty(value = "minX")
    private Double minX;

    @ApiModelProperty(value = "maxX")
    private Double maxX;

    @ApiModelProperty(value = "minY")
    private Double minY;

    @ApiModelProperty(value = "maxY")
    private Double maxY;

    @ApiModelProperty(value = "上市状态", example = "Active")
    private String listingStatus = "Active";

    @ApiModelProperty(value = "是否为新房")
    private Boolean isNewHouse;

}
